package com.boot.service.impl;

import com.boot.mapper.UserMapper;
import com.boot.pojo.User;
import com.boot.service.IUserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements IUserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public List<User> getAllUsers() {
        return this.userMapper.getAllUsers();
    }

    @Override
    public User getUserById(Integer id) {
        return this.userMapper.getUserById(id);
    }
}
